﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DAL;
using BLL;
using Telerik.Web.UI;
using System.IO;
using System.Collections.Generic;

public partial class Hoso_HosoBacsi : System.Web.UI.Page
{

    THANHVIENBLL tvBll = new THANHVIENBLL();
    BAIVIETBLL bvBll = new BAIVIETBLL();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["tenthanhvien"] == null) Response.Redirect("../LogIn.aspx");

        if (!Page.IsPostBack)
        {
            
            THANHVIEN tv = (THANHVIEN)Session["thanhvienObject"];
            List<BAIVIET> listBv = bvBll.getListBaivietWithIDthanhvien(tv.mathanhvien);
            lb_tongsobv.Text = listBv.Count.ToString();
        }
    }
  
}
